'use strict';

/**
 * @param {Egg.Application} app - egg application
 */
module.exports = app => {
  const { router, controller } = app;
  //用来描述请求 URL  具体承担执行动作的 Controller
  router.get('/', controller.home.index);
  router.get('/api/list',controller.home.getList);
  //查询
  router.get('/api/studentlist',controller.student.list);
  //删除
  router.delete('/api/del',controller.student.del);
};
